<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>会员中心-系统消息</title>
<link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhanghou.css">
<script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
</head>

<body >
<div class="lm">
	<a href="javascript:history.back(-1);">
		<img src="__PUBLIC__/Mobile/images/return.png" style="height:22px; padding-left:2%; line-height:22px; width:6%; padding-top:2%;" class="left">
	</a>
    <span class="left size20" style="width:85%">消息（{$news['count']}）</span><!--<span style="font-size:1.5em; color:#23CC77;" onClick="empty();">清空</span>-->
</div>
<section>
<!--消息-->

<foreach name='list' item='vo'>
	<div class="system-information">
		<a href="javascript:;">
	    	<img src="__PUBLIC__/Mobile/images/system.jpg" width="92" height="92"> 
	        <span class="s" style="width:80%;">
	        <p>系统消息 <span style="float:right;">{$vo.create_time|date="Y-m-d",###}</span></p>
	        <p class="gray">{$vo.news_info}</p>
	        </span>
	    </a>
	</div>
</foreach>

</section>
<script>
//清空全部记录
function empty(){
	layer.open({
	    content: '确认要全部清空吗？',
	    btn: ['确认', '取消'],
	    shadeClose: false,
	    style: 'width:80%; height:40%;',
	    yes: function(){
	    	window.location.href = "{:U('Mycenter/empty_news')}";
	    }
	});
}

//删除单个
function del_coll(id){
    $.post("{:U('Mycenter/del_news')}", { "id": id },
            function(data){
                if(data==1){
                    layer.msg('删除成功')
                    window.location.href = "{:U('Mycenter/person_news')}";
                }else{
                    layer.msg('删除失败');
                }
    }, "json");
}
</script>
</body>
</html>
